package com.abing.chatRoom;

// [加入编程导航](https://www.code-nav.cn/) 深耕编程提升【两年半】、国内净值【最高】的编程社群、用心服务【20000+】求学者、帮你自学编程【不走弯路】

import com.abing.chatRoom.ws.ChatRoomWebSocket;
import com.abing.chatRoom.ws.UserChatWebSocket;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 启动类
 *
 @author <a href="https://gitee.com/iooioioiooi">abing</a>
 */
@SpringBootApplication
@EnableScheduling
//@EnableWebMvc
@MapperScan("com.abing.chatRoom.mapper")
public class chatRoomApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(chatRoomApplication.class, args);
        UserChatWebSocket.setApplicationContext(context);
        ChatRoomWebSocket.setApplicationContext(context);
    }

}

// https://github.com/liyupi